package ipdesk.model.analysis.dao;



import ipdesk.model.analysis.bean.AnalysisInvadeBean;

import java.util.List;
import java.util.Map;

import com.ibatis.dao.client.DaoManager;
import com.opensymphony.xwork2.ActionContext;

import ecg.dao.DaoService;

public class AnalysisInvadeDao {
	
	private static AnalysisInvadeDao singleton;
		
	protected AnalysisInvadeDao(){}
	
	public static AnalysisInvadeDao getInstance()
	{
		if(singleton == null)
		{
			singleton = new AnalysisInvadeDao();
		}
		
		return singleton;
	}
	
	private DaoManager	manager	= DaoService.getInstance();
	private IAnalysisInvade analysisInvade 	= (IAnalysisInvade)manager.getDao(IAnalysisInvade.class, "ip_desk");
	
	ActionContext context = ActionContext.getContext();
	Map<String, String> session = (Map<String, String>)context.getSession();
	

	
	public List<AnalysisInvadeBean> getAnalysisInvadeList(AnalysisInvadeBean analysisInvadeBean) throws Exception{
		
		List<AnalysisInvadeBean> analysisInvadeList = analysisInvade.getAnalysisInvadeList(analysisInvadeBean);
		
		return analysisInvadeList;
	}

}
